/* 
产品管理界面 接口
*/
import request from "@/utils/request";
//定义接口
export const host = "http://localhost:6688"; //代理请求

const projectList = "/api/goods/projectList"; //商品列表 page 页码
const search = "/api/goods/search"; //参数：search
const deleteItemById = "/api/goods/deleteItemById"; //删除id
const selectItemCategoryByParentId ="/api/goods/itemCategory/selectItemCategoryByParentId"; //产品类目 type

//上传图片
export const uploadUrl = "/api//upload";

//定义方法
export default {
    projectList(params) {
      return request.get(projectList, { params });
    },
    search(params) {
      return request.get(search, { params });
    },
    deleteItemById(params) {
      return request.get(deleteItemById, { params });
    },
  
    selectItemCategoryByParentId(params) {
      return request.get(selectItemCategoryByParentId, { params });
    }
}